Attribute VB_Name = "Module1"
Public Type myTest
aa As Integer
bb As String
End Type
Sub test()
Dim m As Variant
Dim myget As Object
Dim a(1) As New myCla
Dim b As New myCla
Dim col As New Collection
a(0).aa = 1
a(0).bb = "a"
a(1).aa = 2
a(1).bb = "b"
b.aa = 3
b.bb = "c"
col.Add b
'col.Add a(1), 2
'col.Add b, 3
For Each m In col

    b.aa = m.aa
Next
m = col.Item(1)
End Sub

